package com.easychat.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2024-06-25 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="user_info" )
public class UserInfo  implements Serializable {

	private static final long serialVersionUID =  8428350698277653668L;

	/**
	 * 用户ID
	 */
   	@Column(name = "user_id" )
	private String userId;

	/**
	 * 邮箱
	 */
   	@Column(name = "email" )
	private String email;

	/**
	 * 昵称
	 */
   	@Column(name = "nick_name" )
	private String nickName;

	/**
	 * 0：直接加入  1：同意后加好友
	 */
   	@Column(name = "join_type" )
	private Integer joinType;

	/**
	 * 性别 0女 1男
	 */
   	@Column(name = "sex" )
	private Integer sex;

	/**
	 * 密码
	 */
   	@Column(name = "password" )
	private String password;

	/**
	 * 个性签名
	 */
   	@Column(name = "personal_signature" )
	private String personalSignature;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 最后登陆时间
	 */
   	@Column(name = "last_login_time" )
	private Date lastLoginTime;

	/**
	 * 地区
	 */
   	@Column(name = "area_name" )
	private String areaName;

	/**
	 * 地区编号
	 */
   	@Column(name = "area_code" )
	private String areaCode;

	/**
	 * 离线时间
	 */
   	@Column(name = "last_off_time" )
	private Long lastOffTime;

}
